package com.icoding.fw.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = Role.TABLE)
@AttributeOverride(name = "id", column = @Column(name = Role.COLUMN_PK))
public class Role extends BaseDom {
	public static final String TABLE = "role";
	public static final String COLUMN_PK = "role_id";

	@Column(name = "name")
	private String name;

	@Column(name = "description")
	private String description;

	@Column(name = "role_name")
	private String roleName;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

}
